package cn.z2huo.productcenter.management.app.config;

import cn.z2huo.productcenter.jackson.CommonJsonMapper;
import com.fasterxml.jackson.databind.json.JsonMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * <p>公用 Jackson 配置
 *
 * @author z2huo
 */
@Configuration
public class JacksonConfig {

    @Bean
    @Primary
    public JsonMapper defaultJsonMapper() {
        return CommonJsonMapper.INSTANCE;
    }

}
